Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PTRun Unit Converter] Support for 'sq' prefixed units #37648

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

OldUser101
Copy link
Contributor

Summary of the Pull Request

Adds support for square units prefixed with sq. For example, sqm for square metres, instead of m^2.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Used simple substitution to swap sq prefixed units with their ^2 equivalent. For example, sqft is substituted with ft², which is supported by UnitsNet.

For example, converting square feet to square metres can be done as follows:

image

Rather than:

image

This is additional to ^2 suffixed units, which are still available.

Validation Steps Performed

Basic testing done for each unit.

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant